<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=320,minimum-scale=0.5, maximum-scale=5, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<script type="text/javascript" src="<%=basePath%>static/download/jquery-1.8.3.min.js"></script>
		<script type="text/javascript" src="<%=basePath%>static/download/jquery.min.js"></script>
		<script type="text/javascript" id="vsiteScript" src="<%=basePath%>static/download/js.js"></script>
		<link rel="stylesheet" href="<%=basePath%>static/download/index.css"/>
	    <style type="text/css">
			*{margin:0; padding:0;}
			img{max-width: 100%; height: auto;}
			.weixin-tip{display: none; position: fixed; left:0; top:0; bottom:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80);  height: 100%; width: 100%; z-index: 100;}
			.weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}
		</style>
		<title></title>
	</head>
	<style>
		<%-- body{
			background:url(<%=basePath%>static/download/download.jpg);
			background-size:cover;
			width:95%;
		} --%>
	</style>
	<body>
		<div class="weixin-tip">
			<p>
				<img src="<%=basePath%>static/download/live_weixin.png" alt="微信打开"/>
			</p>
		</div>
	
		<div class="container">
		    <img src="<%=basePath%>static/download/logo.png" class="logo">
		    <div class="btn-down">
		        <a href="javascript:statisticDownloadQuantity('${iphoneVersion.url}');" class="ios"></a>
		        <a href="javascript:statisticDownloadQuantity('${androidVersion.url}');" class="andorra"></a>
		    </div>
		</div>
		
		<script type="text/javascript">
	        $(window).on("load",function(){
		        var winHeight = $(window).height();
				function is_weixin() {
				    var ua = navigator.userAgent.toLowerCase();
				    if (ua.match(/MicroMessenger/i) == "micromessenger") {
				        return true;
				    } else {
				        return false;
				    }
				}
				
				var isWeixin = is_weixin();
				if(isWeixin){
					$(".weixin-tip").css("height",winHeight);
		            //$(".weixin-tip").show();
		            setTimeout(function () {
		                $(".weixin-tip").show();
		                $(".VACT_main").hide();
		            }, 8000);
		            
				}else{
		            $(".weixin-tip").hide();
		            $(".VACT_main").show();
				}
	        })
	        
	        function statisticDownloadQuantity(versionurl){
				Gallop.checkUrl(versionurl,'_self');
	        }
		</script>
	</body>
</html>
